﻿#include "GUISEASubSysFlatPlateDialog.h"
#include "ui_GUISEASubSysPlateBaseDialog.h"

#include "FITK_Kernel/FITKCore/FITKActionOperator.h"
#include "FITK_Kernel/FITKAppFramework/FITKAppFramework.h"
#include "FITK_Kernel/FITKAppFramework/FITKGlobalData.h"

#include "FITK_Component/FITKAcousticsModel/FITKAcousticsDiscModel.h"
#include "FITK_Component/FITKAcousticsModel/FITKAcousticsSEAModel.h"
#include "FITK_Component/FITKAcousticsModel/FITKAcousticsDiscNodeList.h"
#include "FITK_Component/FITKAcousticsModel/FITKSEASubSysShellPlate.h"

#include "FITK_Component/FITKAcousticsPhysics/FITKAcousticsPhysics.h"
#include "FITK_Component/FITKAcousticsPhysics/FITKAcousticsAbsPhysicsProp.h"
#include "FITK_Component/FITKAcousticsPhysics/FITKAcousticsAbstractSpectra.h"

#include <QMessageBox>

namespace GUI {

    GUISEASubSysFlatPlateDialog::GUISEASubSysFlatPlateDialog(Acoustics::FITKSEASubSysPlateShell* obj, Core::FITKActionOperator* oper, QWidget* parent /*= nullptr*/) : GUISEASubSysPlateBaseDialog(obj, oper, parent)
    {
        this->setWindowTitle(tr("Flat Plate"));
        //初始化
        initComponent();
        initData();
    }

    GUISEASubSysFlatPlateDialog::~GUISEASubSysFlatPlateDialog()
    {
        //释放数据
    }

    void GUISEASubSysFlatPlateDialog::initData()
    {
        this->initShellData();
    }

    QString GUISEASubSysFlatPlateDialog::getCreateDataObjName()
    {
        return "Flat Plate";
    }

    void GUISEASubSysFlatPlateDialog::initComponent()
    {
        //初始化组件
        QPixmap pixmap(":/icons/FlatPlate.png");
        // pixmap.scaled(pixmap.size(), Qt::KeepAspectRatio);
        //_ui->label_image->setScaledContents(true);
        _ui->label_image->setPixmap(pixmap);

        QPixmap pixmap1(":/icons/PlateModel.png");
        // pixmap1.scaled(pixmap1.size(), Qt::KeepAspectRatio);
        //_ui->label_GeoImage->setScaledContents(true);
        _ui->label_GeoImage->setPixmap(pixmap1);

        _ui->widget_SinglyGeo->setVisible(false);
        _ui->widget_DoubleGeo->setVisible(false);
    }
}
